package com.xxh.search.document;


import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "movie",createIndex = true)
public class MovieDocument {

    @Id
    Integer mid;
    @Field(type = FieldType.Text)
    String mName;
    Integer issue;

    Double popularity;
    @Field(type = FieldType.Keyword)
    String types;
    String overview;
    String url;
    @Field(type = FieldType.Double)
    Double score;
}
